package com.shinobi.timetracker.database;

import java.util.Calendar;
import java.util.Date;

import com.steema.teechart.DateTime;

public class CurrentDateSettings {
	
	private int startYear;
	private int startMonth;
	private int startDay;

	private int stopYear;
	private int stopMonth;
	private int stopDay;
	
	public CurrentDateSettings() {
		Calendar cal = Calendar.getInstance();
		DateTime current = new DateTime( cal.getInstance().getTimeInMillis());
		DateTime c = current;
		startYear = c.getYear();
		stopYear = c.getYear();
		
		startMonth = c.getMonth();
		stopMonth = c.getMonth();
		
		c = new DateTime(current.getTimeInMillis() - 86400000);
		startDay = c.getDay();
		
		c = new DateTime(current.getTimeInMillis() + 86400000);
		stopDay = c.getDay();
	}
	
	public void setStartYear(int startYear) {
		this.startYear = startYear;
	}
	public int getStartYear() {
		return startYear;
	}
	public void setStartMonth(int startMonth) {
		this.startMonth = startMonth;
	}
	public int getStartMonth() {
		return startMonth;
	}
	public void setStartDay(int startDay) {
		this.startDay = startDay;
	}
	public int getStartDay() {
		return startDay;
	}
	public void setStopYear(int stopYear) {
		this.stopYear = stopYear;
	}
	public int getStopYear() {
		return stopYear;
	}
	public void setStopMonth(int stopMonth) {
		this.stopMonth = stopMonth;
	}
	public int getStopMonth() {
		return stopMonth;
	}
	public void setStopDay(int stopDay) {
		this.stopDay = stopDay;
	}
	public int getStopDay() {
		return stopDay;
	}
}
